OptionFrame = {}

function OptionFrame:constructor()
	self.m_OptionFrame = CreateFrame("Frame",nil)
	
	self.onEventFrame = function (frame,...)
		if self[event] then
			self[event](self,...)
		end	
	end
	
	self.m_OptionFrame:SetScript("onEvent",bind(self.onEventFrame,self))
end

function OptionFrame:RegisterEvent(...)
	self.m_OptionFrame:RegisterEvent(...)
end

function OptionFrame:GetFrame()
	return self.m_OptionFrame
end